#import "AppDelegate.h"
#import "ViewController.h"

@interface AppDelegate ()
@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSLog(@"应用程序启动中...");
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    
    ViewController *viewController = [[ViewController alloc] init];
    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
    
    self.window.rootViewController = navigationController;
    [self.window makeKeyAndVisible];
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // 应用程序将要进入非活动状态时调用此方法
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // 应用程序进入后台状态时调用此方法
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // 应用程序将要进入前台状态时调用此方法
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // 应用程序变为活动状态时调用此方法
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // 应用程序即将终止时调用此方法
}

@end 